package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {
    Employee getEmployeeByUserName(String loginUsername);

    void addEmployee(Employee employee);

    List<Employee> employeePage(int pageNo, Integer pageSize, String userName);

    //@Select("select count(id) from employee")
    Integer selectCountByEmployee();

    void updateEmployee(Employee employee);


    Employee selectEmployeeById(Long id);

    String getUpdateNameById(Long updateUserId);

    String getCreateUser(Long createUserId);
}
